import request from '@/utils/request'

/**
* 扫码枪配置表分页查询
* @param {查询条件} data
*/
export function listScannerConfig(query) {
  return request({
    url: 'run/scannerconfig/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增扫码枪配置表
* @param data
*/
export function addScannerConfig(data) {
  return request({
    url: 'run/scannerconfig',
    method: 'post',
    data: data,
  })
}
/**
* 修改扫码枪配置表
* @param data
*/
export function updateScannerConfig(data) {
  return request({
    url: 'run/scannerconfig',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取扫码枪配置表详情
* @param {Id}
*/
export function getScannerConfig(id) {
  return request({
    url: 'run/scannerconfig/' + id,
    method: 'get'
  })
}

/**
* 删除扫码枪配置表
* @param {主键} pid
*/
export function delScannerConfig(pid) {
  return request({
    url: 'run/scannerconfig/delete/' + pid,
    method: 'delete'
  })
}
